import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/views/index'
import usercenter from '@/views/usercenter'
import goodsList from '@/views/goodsList'
import cartList from '@/views/cartList'
import shopStep from '@/views/shopStep'
import userOrder from '@/views/userOrder'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/usercenter',
      name: 'usercenter',
      component: usercenter,
      children:[
        {path:"/",component:goodsList},
        {path:"/usercenter/cartList",component:cartList},
        {path:"/usercenter/shopStep",component:shopStep},
        {path:"/usercenter/userOrder",component:userOrder},
      ] ,
    }
  ]
})
